/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class WaterPurifier {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010050050';
    }

    get categoryName() {
        return '\u51c0\u996e\u673a';
    }

    getCartridgeRemainingDay(params) {
        return command({
            method: 'getCartridgeRemainingDay',
            methodId: 'p1vZQTMo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'pdN7VzgE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pgh0uovW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTargetTemperature(params) {
        return command({
            method: 'getTargetTemperature',
            methodId: 'pGoxpNw1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTdsIn(params) {
        return command({
            method: 'getTdsIn',
            methodId: 'pZgRrvZk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTdsOut(params) {
        return command({
            method: 'getTdsOut',
            methodId: 'phEqYRfz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWorkStatus(params) {
        return command({
            method: 'getWorkStatus',
            methodId: 'ptRSxWpI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setCartridgeToDefault(params) {
        return command({
            method: 'setCartridgeToDefault',
            methodId: 'ppAX3iub',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pUPQLHxq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setTargetTemperature(params) {
        return command({
            method: 'setTargetTemperature',
            methodId: 'peH3byQx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default WaterPurifier;
